{namespace dkpoints.errors.templates}


/**
 * Generic error statement + Back button
 * @param message The message to display to the user.
 */
{template .genericError}
<div>
  <div style="font-family: 'Lucida Grande','Trebuchet MS','Verdana','sans-serif'; color: red;">
    <form>{$message} - <input type="button" id="backButton" name="backButton" value="Go Back" /></form>
  </div>
</div>
{/template}

/**
 * If a user is logged in, but not an admin, show them this
 */
{template .http404}
<div>
  <div style="font-family: 'Lucida Grande','Trebuchet MS','Verdana','sans-serif'; color: red;">
    <form>Nothing here - <input type="button" id="backButton" name="backButton" value="Go Back" /></form>
  </div>
</div>
{/template}

/**
 * If a user is either not logged in, or logged in as a non-admin.
 * @param loggedIn User is logged in, just not an admin.
 */
{template .notAuthorized}
<div>
  <div style="font-family: 'Lucida Grande','Trebuchet MS','Verdana','sans-serif'; color: red;">
    <form>
    {if not $loggedIn}
     You must log in to an administrator account to use this feature - <input type="button" id="backButton" name="backButton" value="Go Back" />
    {else}
     Your account does not have administrative privileges - <input type="button" id="backButton" name="backButton" value="Go Back" />
    {/if}
    </form>
  </div>
</div>
{/template}
